package com.mustafaiev.tair.cts.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.mustafaiev.tair.constant.ViewNames;
import com.mustafaiev.tair.cts.service.PayerService;

@Controller
public class LoginController {

	@Autowired
	private PayerService payerService;

	@RequestMapping(value = "/loginForm")
	public ModelAndView loginForm(final ModelMap model) {
		final ModelAndView view = new ModelAndView(ViewNames.LOGIN_FORM);
		return view;
	}

	@RequestMapping(value = "/login")
	public ModelAndView login(final ModelMap model,
			final HttpServletRequest request, final HttpServletResponse response) {
		final ModelAndView view = new ModelAndView(ViewNames.LOGIN);
		return view;
	}

	@RequestMapping(value = "/accessDenied")
	public ModelAndView accessDenied() {
		final ModelAndView view = new ModelAndView(ViewNames.ACCESS_DENIED);
		return view;
	}

}
